<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var weeks = parseInt(prompt('请输入星期数'));
    var day = parseInt(prompt('请输入天数'));
    var week = ((weeks + day) % 7);
    if(week == 0){
      week = '星期日';
    }
    if(week == 1){
      week = '星期一';
    }
    if(week == 2){
      week = '星期二';
    }
    if(week == 3){
      week = '星期三';
    }
    if(week == 4){
      week = '星期四';
    }
    if(week == 5){
      week = '星期五';
    }
    if(week == 6){
      week = '星期六';
    }
    alert('星期' + weeks + '的' + day + '天后是' + week);
  </script>
</head>
<body>
  
</body>
</html>